<?php

namespace app\admin\model\setup;

use think\Model;

/**
 * Taxauthrates
 */
class Taxauthrates extends Model
{
    // 表主键
    protected $pk = 'ID';
    
    // 表名
    protected $name = 'setup_taxauthrates';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function taxauthorityTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\setup\Taxauthorities::class, 'taxauthority', 'taxid');
    }

    public function dispatchtaxprovinceTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\setup\Taxprovinces::class, 'dispatchtaxprovince', 'taxprovinceid');
    }

    public function taxcatidTable(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\setup\Taxcategories::class, 'taxcatid', 'taxcatid');
    }
}